Dilepton production at SPS energies