don't apply sidebar caclulations for mobile and when window height is les than sidebar's