Up to 5 April 2015, a non-resident individual was not liable for UK CGT on gains made whilst they were non-resident and provided they completed at least 5 five years (where they left the UK after 5 April 2013) after they left the UK as a non-UK resident. From 6 April 2015, non-UK resident owners of UK residential property are liable to UK CGT on gains they make on disposal of the property but are able to claim some reliefs.
You have several choices as you can read here
1 Provided you sell the property with 18 months of moving out, you will qualify for main residence relief for that part of the gain covered by your occupation of the property and for the last 18 months of ownership. Letting relief of up to £40,000 per part owner will be available for any period of gain not covered in the previous sentence.
2 You could take the 5 April 2015 value of the property as its cost for CGT purposes which will pretty much guarantee you will have no CGT to pay in the UK provided you sell it for close to that value. Each part owner will have a CGT allowance to cover the first £11,100 of their share of any gain over and above the 5 April 2015 value.
3 You can use the whole period of ownership and apportion the gain between pre 6 April 2015 and post 6 April 2015.
It seems to me that 1 or 2 above will ensure you pay no CGT in the UK.
I hope this helps but let me know if you have any further questions.