set up div layouts for home and gallery