Flexible gallery now works.