more doctests for generate_slices, because the one test is failing