Context. The slowly positively drifting bursts (SPDBs) are rarely observed in radio emission of solar flares. Aims. To understand how the SPDBs are generated, we studied the radio observations at 600–5000 MHz together with the imaging observations made in ultraviolet (UV) and extreme ultraviolet (EUV) during the SPDB-rich C8.7 flare of 2014 May 10 (SOL2014-05-10T0702). Methods. Because the SPDBs propagate towards locations of higher plasma density, we studied their associations with individual flare kernels, located either within the flare core itself, or distributed at longer distances, but connected to the flaring region by large-scale hot loops. For each kernel we constructed light curves using 1600 Å and 304 Å observations and compared these light curves with the temporal evolution of radio flux at 1190 MHz, representing all observed groups of SPDBs. We also analysed the UV/EUV observations to understand the evolution of magnetic connectivity during the flare. Results. The flare starts with a growing hot sigmoid observed in 131 Å. As the sigmoid evolves, it extends to and interacts with a half dome present within the active region. The evolving sigmoid reconnects at the respective hyperbolic flux tube, producing large-scale magnetic connections and an EUV swirl. Three groups of SPDBs are observed during this large-scale magnetic reconnection, along with a group of narrow-band type III bursts. The light curves of a kernel corresponding to the footpoint of spine line analogue show good agreement with the radio flux at 1190 MHz, indicating that the SPDBs are produced by the large-scale magnetic reconnection at the half dome. In addition, one of the kernels appeared in the neighbouring active region and also showed a similar evolution to the radio flux, implying that beams of accelerated particles can synchronize radio and UV/EUV light curves across relatively large distances.