Add slider functionality