how to defete boss slime its again and again releasing small ones the one that comes at level 6
Focus on attacking only the boss slime.
Slime boss has a weakness to lightning, Buy the spell from the magic shop.
Also, by choosing not to fight him, you can postpone the fight and have a chance to level up.