fix issue with not displayed gallery