If you find yourself riding alongside another vehicle, you should:

Riding directly next to another vehicle is dangerous because you could be riding in the vehicle's blind spot. Additionally, the vehicle may block your route of escape if another hazard arises. If you find yourself riding directly alongside another vehicle, either speed up or drop back.
DMV Writen Test