moved helper classes to the top in make_slices.py