new code for making slices from a catalogue