vertical alignment of media in preview and avoidance of titlebar