created mixin to generate grid layout automatically