WORKING VERSION: Fixed slider bug.