change canvas width accorging to orientation to avoid scrolling of bootstrap carousel