measure slide's outerHeight and outerWidth instead of height and width