Period masturbation

How can I masturbate on my period and use a dildo without getting so much blood everywhere?