Sorted out the onhashchange function for proper paging. And swiping.