Replaced setting slice in array by copy! with offset