can't stop lurking my boyfriend's ex...

How do I stop it's really taking a toll on my mental health. He hasn't talked to her since they broke up 3.5 years ago, but when they were together he'd always complain to me about her and he had a million of photos of her and them on IG and on his phone and he made his lock screen her selfies but he doesn't have a single pic of me on his phone or take pics of me at all...

when I ask him to take pics of us together he gets mad. One of the first times I hung out with him (we were friends for almost two years at this point) he was looking through his phone and he still had pics of her and was like "can you delete these for me?" And I thought it was a weird question but I did. This was a year after they broke up and he STILL had pics of her...wtf?

We've been together 2.5 years now. She's the one who broke up with him btw. She ended up ignoring him and he told me he'd text her and call her every day for a MONTH until he gave up...he's ignored me for 3 days at a time until I literally had to beg him to talk to me. If I don't text him for two days he doesn't give a shit or even try to talk to me. I feel like he loved her more and I'll never be as good as her. He is hardly affectionate with me and barely ever has sex with me. He's only initiated sex about 4-5 times in 2.5 years. He's always "too tired" or some other BS excuse. I feel like if she started talking to him again he'd take her back in a heartbeat 😔 he'd always buy her fancy expensive birthday gifts and take her on nice vacations and hes never done this for me. The entire time we've been together he's never gotten me any birthday or holiday or valentines gifts even when I'd get him something, but always has for her. I asked if we could go on a vacation for a weekend and he got mad at me.

However, when we first started dating, he said something like "I was so ready to break up with my ex for you because I really really liked you" and he'd flirt with me when they were having relationship problems. But when we first got together I saw a note on his phone that said "I was so sure I was going to marry you, and now you're gone." He gets mad at me when I talk about a future with us and changes the subject. It makes me feel awful. What should I do?? I can't stop comparing myself to her!