call index on slice