Function image-gallery ready.