fix gallery build output