Changed sidescrolling methods to use the scrollToPage method to remove code duplication