The stellar content of the XMM-Newton slew survey