I recommend the two novels,"The Noble Woman in the Portable Space Has Spring" and "Portable Space: The Reborn Female Supporting Cultivator's Path to Cultivation." They were all time-travel novels. The female protagonist had a portable space and a drug that could determine the gender of the child. Among them,"The Noble Woman in the Portable Space has a Spring" also involved the plot of the palace, while "Portable Space: Reborn Female Supporting Cultivator's Immortal Cultivation Road" was based on the theme of Xianxia. I hope you like my recommendation. Muah ~