Creating grid structure using media queries