add pagination of posts using will_paginate gem