add resize function for youtube