slice image array into image pair array