Make $elem local to the swipebox instance