map height according to window height,detect movile and window dimensions