/* ==collapse function in menu devices==== */