Added pagination to limit the posts displayed.