dynamically create and position the div that encapsulates the canvas