How can I have a numeric slider that is responsive on desktop and mobile?