Retract piston when it is facing up or down