slider functionality improved