slider functionality added (still have problems with the transition)