[Fix] Fix for issue due to which element.clientHeight/clientWidth don't work correctly all the time
- Issue seems to have been caused after last chrome update
- clientHeight and clientWidth property NOT giving correct value unless the element is in the DOM *and* displayed (i.e. not 'display: none')
- (plus, added code to hide() overlay before making css related changes, and then show() in the end)