When they are about to give birth most people move them to a breeder tank or at least one of those plastic fish breeders that you can hang inside the tank. The plastic breeders can come with a tray insert so the fry/eggs separate away from the parent fish and you can easily scoop it out after birth.