This is a very late reply but for the future you might want to keep in mind...
To avoid sticking...
The pan must be hot and must have some type of oil even if using a non-stick pan.
Non-stick pans can be buttered/oiled before heating but you do have to be careful not to burn the butter/oil before adding the ingredient.
Using butter is generally better than oil and definitely better than margarine. If you're avoiding dairy, can you use Crisco? Margarine is absolutely the worst for burning and frying. Order: butter, Crisco, oil and margarine if you have to but beware!
If a non-stick pan, don't spray with PAM before using butter/oil. If other than a non-stick pan, spray with PAM and still use butter/oil. (I know it defeats the purpose of PAM but hey, we're cooking potatoes here--not meat--LOL.)
If you try to reduce the heat on an electric stove, it will take longer to cool down than if you were using a gas stove. Thus, for electric, start with a medium high heat. Make sure the pan is hot. Add butter/oil. Immediately reduce to medium or even medium-low after adding potatoes. By the time the element cools down, it should be time to flip the potatoes. They should not stick if you have used butter. Immediately return the heat to medium-high for a minute or two, then reduce to medium.
Gas burners are more forgiving and you can raise/lower the heat faster. Which means, you do have to raise/lower the heat during the stages of cooking...which means you have to pay attention to every stage.
As I typed this, having wanted to reply for a couple of weeks now, I realized that I began my cooking journey at the age of 4 when my mom taught me how to fry an over easy egg in hot Crisco. I stood on a stool at a gas stove and had to crack the egg into the pan, flip it when I though it was ready and then plate it. Every time the yolk broke, I began again. My mom said it only took a dozen eggs for me to get the hang of it. My brother, 2 1/2 years older, took almost 3 dozen eggs! To this date, I can still remember standing over that frying pan with the grease splattering on me. It didn't bother me at all--I just wanted to succeed...before my brother did! And yes, I can still cook an over-easy egg perfectly...most times!...on either a gas or electric stove. Good memories...am teaching my son how to flip an egg...gosh, what patience my mother had to deal with two children flipping eggs! All because she hated cooking breakfast, LOL!