remove unnecessary grid classes