Heavy and rare-Earth metals in the transmission spectra of Ultra Hot Jupiters