implemented masonry js to handle grid displays.