bug fixing with slider in main page