The way you are thinking of it is physically impossible but its an optical illusion. Its quite possible.
Watch where his shadow falls on the objects
Take a look at the links. One is made up of multiple objects, the other is one piece a mix of both with a wter line going through the squiggly legs would solve the porblem
http://www.cs.technion.ac.il/~gershon/EscherForReal/