refactor the box resizing animation