Actually when you drive slower you use more gasoline because the fuel is still flowing through the fuel injectors even when you're not pressing on the gas pedal too much and going slower.
But it takes just a bit more fuel to go a bit faster and it actually gets you further on the same amount of fuel so your fuel mileage will improve if you keep at around 55 MPH to 65 MPH or whatever the speed limit it.
Speeding however uses more fuel and puts more strain on your engine and transmission but going the speed limit helps you get the best fuel mileage out of your vehicle.
Going slower causes you to take longer to reach your destination and uses up more fuel so go the speed limit when possible to get the best fuel mileage.
Also when you're just driving around town your vehicles uses more fuel to go shorter distances because your fuel injectors are injecting the same amount of fuel even when you're just cruising around town.
So driving on the highway at higher speeds get you more miles per gallon of gasoline.
That's why there's a city mpg and a highway mpg and the city mpg is usually lower than the highway mpg.