slice array with one argument