Fixes issue with selector for last thumbnail