Add splice and slice for array

there is important difference