Dynamics and formation of alternating droplets under magnetic field at a T-junction