Sliding motion on the arbitrary path