DRY'd up the script for the panel slideToggle