some configuration for gallery