"And among us are the righteous" (the believers), "and among us are otherwise" (meaning: the polytheists), "we have been of varying ways" (or distinct sects). Among the Jinn, there are believers, Jews, Christians, Magians, and idol worshippers.
Muhammad said: "Tara'iq" (ways) means: we were divided into sects. "Al-Qidad" is the plural of "Qiddah," which is in the status of a "qit'ah" (piece) and "qita'" (pieces).