resize function for sexy pants