further work and bug fixes on slicesize refactoring