Updating animation of pager to be smoother