adjusting resize for vertical layout
adjusting locus for height