Mini crib?

I live in a small one bed apartment with my 3 month old. The apartment is fine right now. I plan to move when my daughter is 2ish. Right now she sleeps in a pack and play. A crib won’t fit in my room so I need to figure out a a sleeping situation for her to last until 2. Should I buy a mini crib or can she sleep in. a pack n play until two? I worry because the pack n play mattress seems thin to last until 2. another option is something like this

Can someone give me advice