Test and fix slicing