Curious

How do you “shorten” your period and I used to have my period for 5 days and the last time I had it went back to seven. So what does that mean