Changing slider to be dynamic