using horizontal slide to switch between adjacent cards