The key is to make sure you preheat your skillet completely. Cast iron heats slowly, so give it plenty of time to get fully hot before adding your oil. Then, once you've added your potatoes to the skillet, let them sit in the hot oil, without stirring, until the bottoms of the slices are browned. This will allow the potatoes to release from the pan in order to flip them.