The rectangle is a wobbly, unstable shape. When you push the side, it flops into a slanted parallelogram. This happens without any of the rectangle's sides changing length. When you poke the top ...
Fold the two remaining shapes in half. Cut along the folds ... The height of the rectangle is the slant length... Image caption, ...you've done it! The sectors rearranged into the rectangle ...