How do magicians do the trick where they saw people in half an put them back together?

The box is actually two boxes with a small space in between. Generally the magician's assistant will tuck his/her legs into the left half and when the magician saws the box half he/she doesn't come near the assistant's legs.