Added animation to pager buttons