then , slowly , he pushed his legs upward , changing his grip on the branch as he pulled himself up and up , curling around the branch and finally stretching into a handstand , his feet up straight above his head .