Make the instanceof slide more dynamic