title: Divide square image to N number of equal rectangles in a webpage
body: <p>I have a web page with a square image and I want to divide this image into <strong>n</strong> number equal sized parts, where <strong>n</strong> is defined by the user when he clicks on a button with a number.</p>
  
  <p>For exmaple:</p>
  
  <p><code>Button with number 5  ----&gt; Divides the square image to 5 equal parts</code></p>
  
  <p><code>Button with number 4  ----&gt; Divides the square image to 4 equal parts</code></p>
  
  <p>etc..</p>
  
  <p>And I want those parts to be clickable and lead me to another page.
  I don't even know what should I use. </p>
  
  <p>Any suggestions, open for anything? Some algorithm or something I don't know ... hope you can help me!</p>
  
  <p>Cheers! :) </p>