Irregular period

I have been having irregular periods the past 2 months and I have been having unprotected sex and my periods usually last 8 days but the past 2 months it only last 4 and they never do that. I'm really concerned what would make my periods do this???