Improved timing for section hide/show