ECMS-3854: Customize the sizing of Flash preview (cherry-pick)