Added slide switch functionality, code commented.