gallery detail fixes