It definitely shouldn’t be a button amid other buttons, as in the second image. (It will just get lost in there.) Ideally, it should be styled differently from other buttons and be separate, either above those options, below or both (such as a down arrow to show more option and an up arrow to show fewer).