little modifications to the view slider example so that main still runs