It was a trial and error for me. Try to imagine your character from straight top-down, then slice it in individual layers. When animating, each layer should be offset by 1 pixel from the previous layer on the Y axis.