Added slider functionality