adds the possibilty to flip the value of the slider