Little optimizations in slicing