Which revision corrects the dangling modifier in this sentence?

Brushing my teeth, a spider crawled on the sink.

While I was brushing my teeth, a spider crawled on the sink.

A spider, brushing my teeth, crawled on the sink.

While brushing my teeth, a spider crawled on the sink.

A spider crawled on the sink while brushing my teeth.