(f) adapting grid to breakpoints