Your team is underlevelled for Dialga. The answer is to train rather than to find a trick.
Getting both Pokémon into the mid-fifties to low sixties makes the fight manageable. One player reports clearing it at 62, which is a reasonable target to aim for.
Dialga's stats and its ability to act first punish a level 44 and 45 team severely. No amount of clever positioning compensates for being twenty levels down, and attempting it repeatedly mostly burns your healing items.
Stock up on healing and status-curing items, bring moves that exploit its weaknesses, and go in with both Pokémon healthy. Also make sure you have a way out, since a failed attempt at the summit can cost you the run entirely.
Patience here saves a lot of frustration.