Best friends are best friends, period. Sleepovers don't need a gender check.
Setting ground rules about respect and boundaries teaches kids way more than arbitrarily separating them by gender. Trust the parenting, not outdated rules.