Hi, I don't think you have a dangling participle here. Although the subject of your imperative main sentence is absent (which is perfectly normal in imperative sentences), your subordinating clause (which starts with 'while') takes the exact same subject. If this is the case, then there is no dangling participle.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.