pagination added

It is shown only if there are enough number of posts.