added slider offset functionality