The use of "while" as conjunction and preposition

That makes it a subordinate clause, not a prepositional phrase. (It has a subject and a verb.)