small fix for gallery