Changed variable names for slider