fixed: must consider opposite when checking duplicates sliced elements