now calculating guide height width and applying in JS