Adjusted the height and the width of the video and image to fit inside the preview box.