Fix some style issues in gallery