remove maintainIndices from slice