Fixed a bug that in a few cases caused slides not

to be able to hide.