Add gesture recognizer to navigate through web pages by left or right swipe.