substitute em for % for margin in block grid to fix  photo flip failure