Electromagnetic probes ($\gamma, \gamma^{\ast}$) offer a unique opportunity to study the conditions during heavy-ion collisions. They are produced throughout the whole evolution of the colliding system and can penetrate the strongly interacting medium to bring direct information from their origins to the detector. In this manner, it is possible to not only probe freeze-out, but also earlier stages where maximum temperature and density are produced.
We present measurements of dielectrons from Ag+Ag collisions, collected with the High-Acceptance-DiElectron-Spectrometer (HADES), at $\sqrt{s_{NN}}=2.55$ GeV and $\sqrt{s_{NN}}=2.42$ GeV. A particular focus is set on collectivity studies with a multidifferential analysis of the directed flow $v_{1}$ and elliptic flow $v_{2}$ in terms of centrality, rapidity, transverse momentum and invariant mass.