getVisiblePagesWithContentOffset method added