Updated for window resize event

Height & width is dynamic, Can be resize according to window height &
width