Added resizable toggle functionality