add basic pagination to posts