Namespace and refactor subMenuSlider