Add checking if resizing up or down