New to this whole thing

Girl very interested in me, texts me daily, emotes, flirty etc for about 2 months. Met up and hooked up for 5 days, fooled around (2nd base, didn't go ahead because LMR and didn't want her to accuse rape) and all that and she seemed happy. Told me a lot of stuff about her life, opened up completely. Confessed to me and I confessed back (mistake) then suddenly says she wants to take it slow bla bla lets be friends first. I said okay whatever. Then she immediately takes it back and says she wants to try the relationship. But since then it felt like she lost interest, stopped initiating texts as often, less smileys etc. How to fix this if its even possible?