My boyfriend makes me feel insecure

So me and my boyfriend have always been really open about our exes but whenever he gets jealous over someone I was dating he starts to brag about his exes and show me pictures of how gorgeous they are.... I know he doesn't meant to hurt me but it obviously makes me really insecure and I'm not sure how I should deal with it