init gallery dir