From a steady plume to periodic puffs during confined carbon dioxide dissolution