always call beforeMove and afterMove with the correct index

This will call the callbacks with the index of the page we're moving to, not the page that we're moving from