set up grid layout on index page