toggle between slides and global mode