A slider wasn't intended for switching layouts. It's supposed to be a more touch interface friendly version of a tab control.
can only find information on how to set up the script which would be onpanelswitch trigger and a GoToLayout.....
But that would appear to be exactly the method to use to get the results that you want. You can use those with Get ( TriggerTargetPanel ) to identify the panel that is now the front panel and this can be used to determine the layout you want to change to.