Transverse oscillations and stability of prominences in a magnetic field dip