DNN-5927: optimised fix - adapt to screen height