I'm not sure I understand the issue, perhaps you need to state it more clearly.
You made money on the sale, so you will have to pay taxes. Can't you just hold out some of the gains you made to pay taxes?
Regarding getting taxes down, my advice is to look at the whole picture of maximizing what you make minus the taxes you must pay. About all I worry about tax-wise is to invest in tax-exampt bond funds over taxable, because it makes sense for my tax bracket, and to try to hold onto stocks and mutual funds long enough to sell for LT cap gains rather than ST, unless it is a stock that I think will drop a lot before I get to a year. Mostly I just buy and hold, to defer paying taxes. If I make a good profit on an investment, taxes are just a reduction on the gains, but it's better than no gain at all.
If you made a mistake on taxes last year and owe a lot, yeah, maybe you ought to hire a CPA to help out. I've heard of people hiring a CPA to help them make whatever they want to do be more tax efficient, but I don't know what they would do if you're primarily in the stock market.
Good job on getting out for the last market drop. Most people here, myself included, aren't fans of market timing and will probably think you can't do this consistently. If you get out of the market too early you will miss a run-up, and then you're essentially taking a loss by missing out on those gains until you get back in. I agree the market is quite volitaile, but not predictably so. I hear a lot of stories about successes in market timing, but I also hear a lot of stories about people winning big at the tables in Vegas, and rarely hear about the losses they take other times. Make sure you are really honest with yourself that you are really beating the market by getting in and out, and not just being swayed by a few successes.