Change arguments slice to arraySlice