Using repository instead of slide