Using Airalo in multiple countries

Hi! I’m traveling to Croatia, Slovenia, and then will be back in Croatia to finish the trip. Should I get an ESIM for Croatia, then Slovenia, and then buy a third again for Croatia? Haven’t used this before so literally no clue how this all works.