Fix animation when expanding items with sub-items