Swing effect of spatial soliton