Implemented slide behaviour