Invoke beforeMove when clicking on the pagination buttons

When clicking on the pagination buttons the `beforeMove` should be also fired before start scrolling