Updated slider functionality