As a user I would like to see few options on all the slides except first and last slides

As a user I would like to see few options(e.g. additional control icons let's say zoom-in or zoom-out) on all the slides except first(welcome) and last(end) slides. So, I need isFirstSlide() and isLastSlide() functions which return boolean value.