Hide the panel when it's out of sight