Make sure the pan is well-greased with oil or butter before cooking each rosti. Using a non-stick pan can also help prevent sticking.