I think you should try using document.ready for this :
$(document).ready(function() {
$("#content").css('display', 'block');
$("#loading").hide(); //
});
EDIT:
You might try wiating for your content to load :
$('#content').load( function(){
});
Or altenrtivly bind the load
to your last image in slider.