In above type of sexual activity, there is no chance of pregnancy
as you are on period.
Pregnancy is possible only, if unprotected sexual intercourse is done with ejaculation or pre cum around ovulation time (occurs approx 14 days before due date) in regular period. So, in your case, you have nothing to worry.
Be well & practice safe sex
in future to avoid unwanted pregnancy.