Fix slide up/down issue