Expand and collapse for small script not need to add any js library for expand and collapse functionality.  Also this script use as accordion.

Here in below code you need to set variable $click as where you click and set $expand which content you need to toggle expand and collapse.

TRY IT NOW