Check for codes, even if the CEL is not lit. Address any issues this brings up.
Check and replace as needed the filters, plugs, wires, dist cap, rotor and pcv valve. Put a timing light on it.
If the problem persists there are other things to go over, but until you know the above are all good it would be a waste of time to go over.