As far as the mechanic, you can't wait for the circles to appear before you move or you'll likely be too late, causing the damage to snapshot. Watch for the boss to raise its arm and move to the opposite side immediately. That's the indicator that he will slam the slime down on that side.

If you're doing the mechanic properly and still getting hit, then you may be suffering some latency.