Added logic to be able to specify slider offset