first attempt to fix responsive gallery