Get boxes from other places in the caverns. Make a stack of 6 or so.
Jump on top of the fence, but not over.
Not reach down and right click the bottom box. You will grab the entire stack.
Swing them over to the inside of the fence, you are good to go.