We explain how to avoid incurring nasty tax payments on some of your investments