refactor thumb slider