I once read somewhere that in old times slaves (gulam) could be used for sexual pleasure without marriage in the same way if somebody these days employes a women just for pleasure is it jayez and what are the rules for pleasure if not married

There wasn’t something like that. Marriage with slaves happened at certain point. However it was happening in a proper way through formal exchange of vows.