Adding support for left and right slide
Refactoring CSS classes for reuse