fixed broken slide method