Advice please: Family's rude comments about gender preference

So, everybody is expecting a girl. Theres literally no girls in husbands fam. But, they have been saying this rude non stop comments like: if its a boy it will be like blah, if its a girl then we will celebrate. Or: i dont mind the sex but i want to buy dolls bla bla. At first i ignored them, but now is everytime they see me. “If its a boy we dont have other choice, but we want a girl”.
I know its ok to have a preference but you dont have to be mean about it. It is starting to hurt me. 
I cant believe its actually been hard to handle... 😟