Make sliding3 polymorphic