updated pagination & masonry