Make sure the rows are the first elements in the gallery

Otherwise CSS3 :not(:first-child) wouldn't select the second row

Signed-off-by: Herman Banken <hermanbanken@gmail.com>