tmoc slider logic refactor