fix image size issue in gallery