With the top facing boards of the pallet running horizontal in front of you, use a circular saw to cut 2 inches off of each end to remove the vertical bracing boards, which are called stringers.
Results that may be inaccessible to you are currently showing.