fixed grid layout of main page and added grid layout to gallery using justifiedGrid