refactoring grid-styles