added preview for subfolders and fixed gif handling (wont cache them)