fixed scope and js for slide