smarter gallerys and file lists