minor fix for gallery display