Tossing a document on the printer will print it while tossing a photo on the Facebook icon will upload it to the web portal

What is the correctly punctuated version of this sentence?
Tossing a document on the printer will print it while tossing a photo on the Facebook icon will upload it to the web portal.