New class: slicePathHelper
Refactor functions of slicePath