work with negative values in slider