change deck height according to window height
made decks take the minimum height they need, instead of maximum allowed height