Make sure afterMove CB receives the new page ID

This commit fixes issues with the afterMove callback - the fix makes
sure that the index passed to afterMove is the actual index of the
target page. Also deals with the edge case where the page is set to
looping and the user scrolls from the first page to the last page.