Going back to his original question, about how to make this work without knowing the element type in advance, the following does this:
$(ContainerNode).find(el.nodeName + "[data-slide='" + current + "']");
$(ContainerNode).find(el.nodeName + "[data-slide='" + current + "']");