Window load fix for slider