Spin-peierls transition in magnetic field