slider functionality added