gallery workaround