fix preview's height to viewport height