Yeah, there's no tax avoidance here I'm afraid. Gifting shares to your girlfriend would still create a chargeable gain which you would be subject to CGT on. If you gifted them to her, you'd still have to work out the gain by taking the market value when you 'disposed' of them to her....