fix button in gallery