gallery directive done