Responsive slider before refactoring