Add multiple images to a custom block

I’ve written the following custom block that allows a user to create a simple slider and add an image that is then wrapped inside a slider item element. I’ve opted to make this a single block rather than using nested blocks (e.g. a slider item block and parent slider) because I don’t want them wrapping in additional HTML when inside the block editor and instead want it to be a single block of images (like the gallery block).