dynamic resizing of maincontainer div based on video size