refactoring code for epi slice interpolation base class