Figure out the slices automatically