OZZY RODRIGUEZ's great mobile collapse code in a plugin