[709] Shupito: properly regroup widgets during vertical/horizontal switch