On the stellar content of the galactic globular cluster M5