splitting things into pages