nivo slider block and switch in main.php