Slicing the arrays