#3230 - Fixes the issue when the first thumbnail jumped when clicked.
Fixes a bug when a thumbnail in the bottom, which is not completely visible, jumped to the top of the container when clicked.
Add a 5px margin between the thumbnails and the container (10px for the first and last thumbnail).