make horizontal gradients faster by not jumping around in memory as much