fix horizontal grid length