working resizing animation