Added collapsePanel(boolean) and expandPanel(boolean) methods

I am often in the situation where I want to disable sliding and expand/collapse the sliding panel programmatically (i.e. when some even occurs)
This pull request adds methods `collapsePanel(boolean forced)` and `expandPanel(boolean forced)`.