When riding near stopped or slow-moving cars, a motorcyclist should:

Riding between slowed or parked cars can leave you vulnerable to unexpected hazards, such as opening car doors or cars suddenly pulling into traffic. If a hazard arises, you will not have room to safely maneuver. Never travel on the shoulder of a road because other drivers will never expect you to be there.
DMV Writen Test