do you have an example of where you want to apply this?
For example, its a common feature of a Woocommerce shop page, where there is provision for a product to have multiple images.
In what context are you wanting to use this? Then i can provide some advice.