Putting your money in index funds or ETFs can help lower the amount of taxes you'll have to pay on returns.