change page visibility by sliding back and forward