Avoid global variables, use instance of Total Slider class and instance vars