check height when resizing