make fit image when scrolling is finished