Move gallery creation to additional script