add feature that adjust panel horizontal duration