basic slider functionality