building slider class