add transition to resizing