toggle panel directive now uses jquery animations instead of css transition. Couldn't use css here because it required a max height to be set.