add arrayslice

Native method for Array slices using shared memory