We present a new strategy to optimise the electromagnetic follow-up of gravitational wave triggers. This method is based on the widely used galaxy targeting approach where we add the stellar mass of galaxies in order to prioritise the more massive galaxies. We crossmatched the GLADE galaxy catalog with the AllWISE catalog up to 400Mpc with an efficiency of $sim$93%, and derived stellar masses using a stellar-to-mass ratio using the WISE1 band luminosity. We developed a new grade to rank galaxies combining their 3D localisation probability associated to the gravitational wave event with the new stellar mass information. The efficiency of this new approach is illustrated with the GW170817 event, which shows that its host galaxy, NGC4993, is ranked at the first place using this new method. The catalog, named Mangrove, is publicly available and the ranking of galaxies is automatically provided through a dedicated web site for each gravitational wave event.