Handle slidetypes with a switch