Main slider functionality