Layer shortening and fold-shape development in the buckling of single layers