Honestly. Time. It's going to take time. Depending on the connection, it will take more or less time. I've had an ex I took months to get over, and I've had an ex I forgot about after a day. Just take it 1 day at a time. Eventually you'll realize you don't think about her anymore.
Stop opening her insta/facebook/etc