Is it a problem to have tires of different width?
37mm / 1.4" vs 40mm / 1.6" is not a very big difference. There should be no problem for casual riding. 

I'd keep the larger tire on the back as the rear wheel supports more rider weight.