Variable pathlength cell