Programmatically accessing slotted elements

Hello! I am building an image gallery component. The images are provided via slotted img elements. Does stencil provide any means for programmatically accessing slotted elements? This is necessary so the gallery component can know how many images it contains and the alt text for each image. Thank you for your assistance.