moving slider to it's own require class