Responsive gallery workaround.