Fix slide handling