Dynamically determine BG_OFFSET based on mainPage height (instead of magic number), add offsets to main pager