The page gap is handled based on the view mode, i.e. in case of vertical mode the gap will be used vertically between pages (top and bottom).
in case of horizontal mode the gap will be used horizontally between pages (left and right).
So if you need something different than that, you need to change the behavior of the method vLayout of the view mode you are using.