Added code for slider