changed more methods into functions in make_slices.py