restructuring  slider code, added functions for relative values to value class