faster slices for Java arrays