cleaning up some directives
finish gallery