Spin-orbit potential in heavy-ion collisions