array slicing and splicing