sets width and height of category-grid; removes whitepaces;
more mobile support