initial slider functionality