Build two pens with a gate between them. Drive the hogs into one pen, close the gat and move the other pen. It helps if you have 2 other gates. Then just make sure the pen that gets moved connects to the other gate and that its free gate is on the side you'll eventually move the first pen to.
I'd like to draw you a picture, to help explain it. But I'm lucky just to be able to type.