add slice() and splice() to arrays