Setting slider before it is seen