Cleaned up Masonry page template and added pagination