adds a body class when a grid is displayed