set the click handler to check the side of the page that was clicked on and go forward or back for clicks on the right and left of the midline respectively.