split up "initialize" function in KSlicer to make more sense