Ginzburg-Landau equation with magnetic effect in a thin domain