Dogs normally pant if they are hot or excited to keep themselves cool. Panting while traveling in the car maybe because of overheating out of car sickness and to keep cool.
Lower the windows slightly to get fresh air.
Keep a cool temperature inside your car.
Keep your furry friend hydrated always.
You can give your dog warm hugs and kisses to reassure that you are with them and this can keep them calm and comfortable.