added support for any element in the slider. also changed css