run while on period

So I have to run a mile and it's gonna be timed but it happens to fall around one of the first days of my period which are usually pretty heavy and painful. I've never really used a tampon before. I don't know if I should just wear a pad or maybe try a tampon while running. Would a tampon slide down or out a little while running? Sorry if I sound uneducated, my mom doesn't talk to me about these kinds of things. Thanks in advance