fix media and grid