fix logic for dummy slides above and below indexh == 0