Implementing vertical resizing