replaced row class with block grid class in flip photo group