A relation between the dark mass of elliptical galaxies and their shape