implement dynamic change of space between art gallery templates and pool of images based on their number