Langevin equation approach for slow dynamics in magnetic systems