Improved array slicing.