fixing slider values not displaying fractional values when the type is switched