A smart responsive slider