Support to swipe the page to right side in first page and swipe the page to left side in last page.