fixed issue with media items not resizing automatically