fixed a bug with the slider gradient overflowing