Add subgrid class