modify index's layout for masonry