add support for horizontal page swiping