ns_binding for slide_trap function