Why is my fuel pressure gauge shacking?

i have a regulator after my electric pump and before my mechanical. my fuel pressure gauge will pulsate when my electric is off, when i switch it on, my gauge is rock steady.