fix image gallery broken styles. #6667