Fix slide time

this mainly fix few issues found during testing
put the logging after the line below which might change the value