There is only one piece of advice which, even if taken, is going to be of any serious potential benefit.
You should find a good accountant with experience in dealing with residence and domicile cases and put your particular proposals to him so that he can arrange a tax plan that would minimise your liabilities, taking into account your individual circumstances.
Any other course of action is apt to lead to irritation, frutration and pecuniary punishment.