can the if statement be dropped?  `slices` defaults to `None` anyway, right?