Autoresize for display area for media