Use slices over arrays