changed media grid to a layout rules