compress grid styles