show / hide id within tab panel

show / hide id within tab panel

I have a tab panel which loads external content dependent on the chosen tab.  

Due to space issues i would like the content to be expandable via show/hide functionality, however I can't seem to figure out a way to target the #expandpanel id within the tab panel when the tab panel content is loaded as an external page.

Can anyone proffer any advice?

Regards