fixed bug in tab slider where exception was thrown when repositionPanels was called during construction