Hacky patch for gallery