Leonardo DiCaprio was asked to lose weight for the sake of the role