adding paginator to posts page

fixes #42