fix grid width issue for safari