made the gallery responsive to diff resolution

number of rows and pictures height are now set according to screen
height