An analytic solution for time-periodic thermally driven slope flows