Is there a way to disable the previous and next links if there aren’t enough items to scroll?
For example: http://truewest.nextmp.net/special-programs these galleries al
For control without classes and checks on number of items (thumbs) etc this may help to guide you .. part of the solution can also be what gregdev has supplied above, but see the true_false control on navigation and/or pagination as required. You set a different count based check than just <=1
https://stackoverflow.com/a/46562219/3794783